<?php

namespace app\share\model;

use app\user\model\UserModel;
use think\Model;

class ShareLatticeModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_share_lattice";

    public function User(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserModel::class, 'id', 'uid');
    }
}